package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.StudentObserve;
import cn.wolfcode.crm.query.QueryObject;
import cn.wolfcode.crm.util.PageResult;
import org.apache.poi.ss.usermodel.Workbook;

import java.util.List;

public interface IStudentObserveService {

    void saveOrUpdate(StudentObserve entity);

    StudentObserve selectByPrimaryKey(Long id);

    List<StudentObserve> selectAll();

    PageResult quey4List(QueryObject qo);

    /**
     * 根据qo条件在实现类中将xls查询返回
     * @param qo
     * @return
     */
    Workbook exportXls(QueryObject qo);

    /**
     * 罗嘉哲
     * 审核
     * @param id
     * @param newClass
     */
    void changeState(Long id, Long newClass);
    /**
     * 罗嘉哲
     * 反审核
     * @param id
     * @param oldClass
     */
    void unchangeState(Long id, Long oldClass);
}
